a = int(input("请输入数字:"))

a = str(a)
# 字符串反转
b = a[::-1]

if a == b:
    print(f"{a}是回文数")
else:
    print(f"{a}不是回文数")
